/*
 * @Author: webcc
 * @Date: 2022-10-22 17:11:48
 * @LastEditTime: 2022-10-22 22:54:36
 * @email: webcc.coder@qq.com
 * token操作
 */
const TOKEN_KEY = 'token'

export function getToken() {
    return localStorage.getItem(TOKEN_KEY)
}

export function setToken(token) {
    localStorage.setItem(TOKEN_KEY, token)
}

export function removeToken() {
    localStorage.removeItem(TOKEN_KEY)
}

export function hasToken() {
    return !!getToken()
}